package org.murphy.mock_spring.interfaces;

import org.springframework.stereotype.Component;

/**
 * @program: murphy_mock
 * @description: Handle all bean
 * @author: 45048254 Murphy C Wang
 * @create: 2019-06-19 18:34
 **/
@Component
public interface Container {
    /**
     * Fetch bean by beanName
     * @param beanName
     * @return
     */
    Object getBean(String beanName);

    Object getBean(Class clazz);

    /**
     * add a new bean
     * @param name
     * @param bean
     */
    void addBean(String name, Object bean);
}
